package lt.ntec.danblog.server.blog;

import java.util.List;
import lt.ntec.danblog.server.blog.model.Post;
import lt.ntec.danblog.server.core.validator.ValidationException;

public interface Service {

    String DOCUMENT_FIELD_ENDING = "html";

    void deletePost(Long id);

    Long createPost(String title, String content, String tag)
            throws BlogServiceException, ValidationException;

    void updatePost(Long id, String title, String content, String tag)
            throws BlogServiceException, ValidationException;

    Long addComment(Long id, String content)
            throws BlogServiceException, ValidationException;

    List<Post> getPosts();
}
